package com.ruoyi.yljf.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 用户积分明细对象 yljf_user_score_record
 * 
 * @author TAT
 * @date 2025-04-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yljf_user_score_record")
public class UserScoreRecord  {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 积分值 */
    @Excel(name = "积分值")
    private Integer score;

    /** 积分类型（存储中文） */
    @Excel(name = "积分类型", readConverterExp = "存=储中文")
    private String type;

    /** 0:收入  1:支出 */
    @Excel(name = "0:收入  1:支出")
    private String source;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 绑定其他关联表的 id */
    private Long otherId;



}
